home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / rrect=misc.hex < prev    next >
Text File  |  1992-11-01  |  3KB  |  54 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. 02 AA AA AA AA AA AA AA AA % fill pat
  10. 09 FF FF FF FF FF FF FF FF % pn pat
  11. 0A AA 55 AA 55 AA 55 AA 55 % back pat
  12.  
  13.  
  14. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  15. %
  16. %    Test miscellaneous aspects of round rectangles:
  17. %        Position one in a negative area partially off screen
  18. %        Place one so it's upper right corner is below it's lower left corner
  19. %        Like above, but only one side.
  20. %        Draw an elongated one off center of the area to confirm we aren't flipping
  21. %            any axes.
  22. %        Also, try one with different penwidths and height.
  23. %
  24. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  25.  
  26. % Use an ovalsize of 16 here, just so these look like ovals! =)
  27. 0B 0010 0010
  28.  
  29. % paint a rectangle partially off screen
  30. 41 FFC0 FFC0 0030 0030
  31.  
  32. % Erase one with reversed coords
  33. 43 0060 0070   0040  0040
  34.  
  35. % Erase Another, but only put left to the right or right
  36. 43 0080 00A0  00C0 0080
  37.  
  38. % fill an elongated one off to the lower right
  39. 44 0070 00C0 00F0 00E0
  40.  
  41. % Now, Make the pen very rectangular (not square)  (very tall, not very wide)
  42. 07 0008 0020
  43.  
  44. % frame a different elongated one off to the bottom left
  45. 40 00C0 0020 00F8 00B0
  46.  
  47. %To test another aspect of the framing code, make a thin frame vertical rrect
  48. 07 0004 0004
  49.  
  50. % frame an elongated one
  51. 40 0050 0030 00B0 0070
  52.  
  53. FF    % end
  54.